const Router = require('koa-router');
const reptileController = require('../controller/reptile/index');

// 路由前缀
const router = new Router({
    prefix: '/reptile'
});

module.exports = (app) => {
    // 查询所有用户
    router.get('/website/data', reptileController.reptile);

    app
        .use(router.routes())
        .use(router.allowedMethods())
};
